import http from '../common/http/http.js'
// 立即购买生成订单
export const createOrderApi = (data) => {
	return http.post('/api/order/createOrder', data)
}

//根据买家id查询订单列表(购买列表)
export const getOrderListApi = (data) => {
	return http.get('/api/order/getOrderList', data)
}

//根据卖家id查询订单列表(出售列表)
export const getSalesOrderListApi = (data) => {
	return http.get('/api/order/getSalesOrderList', data)
}